public class RecursiveSummation {
    public static void main(String[] args) {

        System.out.println(summation(10));
    }

    public static int summation(int n) {
        int a = 0;

        if (n == 1) {
            return 1;
        } else {
            a = n + summation(n - 1);
            return a;
        }
    }
}
